package com.cosmoplat.xikai.business.mapper;

import com.cosmoplat.xikai.business.domain.DeviceProductLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 22047582
* @description 针对表【device_product_log】的数据库操作Mapper
* @createDate 2025-01-07 13:51:30
* @Entity com.cosmoplat.xikai.business.domain.DeviceProductLog
*/
public interface DeviceProductLogMapper extends BaseMapper<DeviceProductLog> {

    List<DeviceProductLog> getMaxMeasurTorqueListByProductIds(@Param("productIds") List<Long> productIds);

    /**
     * 获取当前产品最早的能耗数据
     * @date 17:21 2025/1/15
     * @param productId
     * @return com.cosmoplat.xikai.business.domain.DeviceProductLog
     **/
    DeviceProductLog getLastConsumption(@Param("productId") String productId);
}




